<style>
    .thbg{
        background:#E9E9E9;
    }
    table tr th,td{
        height: 27px;
        padding-left: 20px;
    }
    table tr:nth-child(even){
        background: #dedede;
    }
</style>
<h3>各省区统计表，总计上报{$total}人</h3>
<table width="100%" border="1" cellspacing="0">
    <tr class="thbg">
        <th width="25%">省份</th>
        <th width="25%">小计</th>
        <th width="25%">省份</th>
        <th width="25%">小计</th>
        <!-- <th width="25%">百分比</th> -->
    </tr>
    {volist name="province_list" id="vo" mod="2"}
        {eq name="mod" value="0"}
            <tr>
            <td>{$vo.province}</td>
            <td>{$vo.total}</td>
        {/eq}
        {eq name="mod" value="1"}
            <td>{$vo.province}</td>
            <td>{$vo.total}</td>
            </tr>
        {/eq}
        {if ($key == $province_count-1) and ($key%2 ==0)}
            <td></td>
            <td></td>
            </tr>
        {/if}
    {/volist}
</table>
{foreach name="list" id="col" key="kk"}
    {php}
        if(!isset($col['title'])){
            continue;
        }
    {/php}
    <h4>{$col.title}</h4>
    <table width="100%" border="1" cellspacing="0">
        <tr class="thbg">
            <th width="50%">选项</th>
            <th width="25%">小计</th>
            <th width="25%">百分比</th>
        </tr>
        {volist name="col.answ" id="vo"}
        <tr>
            <td>
                <a href="{:url($href_url.'/index','title='.$kk.'&answer='.$key)}" class="btn-addtabs">
                    {php}
                    echo isset($vo['title']) ? $vo['title'] : '-';
                    {/php}
                </a>
            </td>
            <td>{$vo.num}</td>
            <td>{if $total == 0}0.00%{else /}{$vo.num/$total*100|round=2}{/if}%</td>
        </tr>
        {/volist}
    </table>
{/foreach}

